.animatePopup {
  border-radius: 5px;
  z-index: 9999;
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 12px 16px 14px;
  width: 366px;
  background-color: #fff;
  border-top-width: 8px;
  border-top-style: solid;
  -moz-box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2), 0 2px 12px rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2), 0 2px 12px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2), 0 2px 12px rgba(0, 0, 0, 0.2);
  &.animatePopupSuccess {
    border-color: #43bd36;
    .iconAnimateStatus {
      color: #4caf50;
    }
  }
  &.animatePopupWarning {
    border-color: #f44336;
    .iconAnimateStatus {
      color: #f44336;
    }
  }
  .animatePopupTitle {
    font-size: 16px;
    margin-bottom: 7px;
    display: flex;
    .animatePopupTitleContent {
      width: 320px;
    }
    .iconAnimateStatus {
      font-size: 22px;
      vertical-align: top;
      margin-right: 10px;
    }
  }
  .animatePopupClose {
    font-size: 24px;
    position: absolute;
    right: 10px;
    top: 0;
    cursor: pointer;
  }
  .animatePopupFooter {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 16px;
    margin-right: 4px;
    .animatePopupBtn {
      cursor: pointer;
      &:hover {
        text-decoration: underline;
      }
    }
    .animatePopupBtnR {
      margin-left: 40px;
    }
  }
  .animatePopupClose:not(:hover) {
    color: #333 !important;
  }
  &.ns-hide {
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
  }
  &.ns-show,
  &.ns-hide {
    -webkit-animation-name: animGenie;
    animation-name: animGenie;
    -webkit-animation-duration: 0.4s;
    animation-duration: 0.4s;
  }
}
@-webkit-keyframes animGenie {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, calc(200% + 30px), 0) scale3d(0, 1, 1);
    -webkit-animation-timing-function: ease-in;
  }
  40% {
    opacity: 0.5;
    -webkit-transform: translate3d(0, 0, 0) scale3d(0.02, 1.1, 1);
    -webkit-animation-timing-function: ease-out;
  }
  70% {
    opacity: 0.6;
    -webkit-transform: translate3d(0, -40px, 0) scale3d(0.8, 1.1, 1);
  }
  100% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}

@keyframes animGenie {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, calc(200% + 30px), 0) scale3d(0, 1, 1);
    -webkit-animation-timing-function: ease-in;
    transform: translate3d(0, calc(200% + 30px), 0) scale3d(0, 1, 1);
    animation-timing-function: ease-in;
  }
  40% {
    opacity: 0.5;
    -webkit-transform: translate3d(0, 0, 0) scale3d(0.02, 1.1, 1);
    -webkit-animation-timing-function: ease-out;
    transform: translate3d(0, 0, 0) scale3d(0.02, 1.1, 1);
    animation-timing-function: ease-out;
  }
  70% {
    opacity: 0.6;
    -webkit-transform: translate3d(0, -40px, 0) scale3d(0.8, 1.1, 1);
    transform: translate3d(0, -40px, 0) scale3d(0.8, 1.1, 1);
  }
  100% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}
